﻿@ModelType Nullable(Of DateTime)
@Code
    Dim dt = DateTime.Now
    If Model IsNot Nothing Then
        dt = CDate(Model)
    End If
End Code
<div class="input-prepend">
    <span class="add-on"><i class="icon-calendar"></i></span>@Html.TextBox("", dt.ToString("dd.MM.yyyy", System.Globalization.CultureInfo.CreateSpecificCulture("ru-RU")), New With {.class = "datefield input-small"})
</div>
@Styles.Render("~/Content/themes/base/css")
@Scripts.Render("~/bundles/jqueryui", "~/bundles/jqueryui/datepickerru")
<script>
    $(function () {
        $(".datefield").datepicker({ firstDay: 1, dateFormat: 'dd.mm.yy' });
    });
</script>
